package cn.xxm.strategy.pay.i18n.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

/**
 * 国际化配置类
 * @author XIEBO990
 */
@Configuration
public class FI18Config extends WebMvcConfigurationSupport {

    /**
     * 在容器启动时获取本地化对象
     * @return
     */
    @Bean
    public LocaleResolver localeResolver(){
        return new FFLocaleResolver();
    }
}
